﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IPC.Communication.Framework.Profinet.AllenBradley
{
    public class AllenBradleyMicroCip : AllenBradleyNet
    {
	    public AllenBradleyMicroCip()
	    {
	    }

	    public AllenBradleyMicroCip(string ipAddress, int port = 44818)
		    : base(ipAddress, port)
	    {
	    }

	    protected override byte[] PackCommandService(byte[] portSlot, params byte[][] cips)
	    {
		    return AllenBradleyHelper.PackCleanCommandService(portSlot, cips);
	    }

	    public override string ToString()
	    {
            return String.Format("AllenBradleyMicroCip[{0}:{1}]", IpAddress, Port);
	    }
    }
}
